package com.risenb.dao;

import java.util.List;

import com.risenb.bean.Permission;

public interface PermissionMapper {
	
    int removePermissionById(Integer id);

    int createPermission(Permission record);

    Permission queryPermissionById(Integer id);

    int modifyPermissionById(Permission record);

    List<Permission> queryAll();
    
    List<Permission> queryMenus();
    
    List<Permission> queryPermissionByParentId(Integer parentid);
    
    List<Permission> queryByManId(Integer manId);
    
}